<template>
  <div style="height: 100%; width: 100%">
    <Header></Header>

    <div class="body">
      <div class="leftSide">
        <LeftSide></LeftSide>
      </div>

      <div class="router">
        <router-view></router-view>
        <div style="width: 2px; height: 100%"></div>
      </div>
    </div>
  </div>
</template>

<script setup lang="ts">
import Header from './components/Header.vue'
import LeftSide from './components/LeftSide.vue'
</script>

<style scoped lang="less">
.body {
  width: 100%;
  height: calc(100% - 42px);
  display: flex;

  > .leftSide {
    min-width: 280px;
    flex: 2;
    height: 100%;
    background-color: #f1f1f151;
    overflow: auto;
    box-shadow: 0 0 2px 2px #b9b9b946;
  }

  > .router {
    flex: 8;
    height: 100%;
    background-color: #f1f1f151;
    overflow: auto;
    display: flex;

    padding: 10px;
      width: calc(100% - 20px);
      height: calc(100% - 20px);
      overflow: auto;
  }
}
</style>
